<?php
class Comment{
	private $id;
	private $text;
	private $cdate;
	private $userId;
	private $username;
	
	public function commentDate($cdate = null){
		if($cdate == null){
			return $this->cdate;
		}else{
			$this->cdate = $cdate;
			return true;
		}
	}
	
	public function commentId($id = null){
		if($id == null){
			return $this->id;
		}else{
			$this->id = $id;
			return true;
		}
	}
	
	public function commentText($text = null){
		if($text == null){
			return $this->text;
		}else{
			$this->text = $text;
			return true;
		}
	}
	public function userId($userId = null){
		if($userId == null){
			return $this->userId;
		}else{
			$this->userId = $userId;
			return true;
		}
	}
	
	public function commentUser($username = null){
		if($username == null){
			return $this->username;
		}else{
			$this->username = $username;
			return true;
		}
	}
}
?>